home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11340 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news3.digex.net!usenet
  2. From: Tom Burket <burket@cpcug.org>
  3. Newsgroups: comp.lang.c++
  4. Subject: ospace STL across DLLs
  5. Date: Wed, 13 Mar 1996 20:05:08 -0500
  6. Organization: Capital PC User Group
  7. Message-ID: <314770C4.757C@cpcug.org>
  8. NNTP-Posting-Host: cpcug.org
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  13.  
  14. Is it safe to use STL collections (Object Space's STL on WinNT/95) 
  15. across DLLs? I have heard speculation that if you create a collection in 
  16. one DLL and pass it to another DLL, code in that DLL cannot modify the 
  17. collection because each DLL has its own storage pool and allocator in 
  18. OSpace's implementation. The same argument would apply to 'string'. We 
  19. would have a serious problem in our large system if we can't pass these 
  20. objects around and let them be manipulated freely across DLLs. We can't 
  21. afford to have the whole system be a statically linked monolith to avoid 
  22. the condition. Sample uses: add/delete members in a collection made in 
  23. another DLL and make a collection in one DLL, release it in another, 
  24. with the first example more important. Am I confused?
  25.